﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Windows;
using CleanBackup.View;
using CleanBackup.ViewModel;
using System.Windows.Markup;
using System.Globalization;

namespace CleanBackup
{
	/// <summary>
	/// Interaktionslogik für "App.xaml"
	/// </summary>
	public partial class App : Application
	{
		protected override void OnStartup(StartupEventArgs e)
		{
			base.OnStartup(e);

			FrameworkElement.LanguageProperty.OverrideMetadata(typeof(FrameworkElement), new FrameworkPropertyMetadata(XmlLanguage.GetLanguage(CultureInfo.CurrentCulture.IetfLanguageTag)));

			MainWindow view = new MainWindow();
			MainWindowViewModel viewModel = new MainWindowViewModel();

			view.DataContext = viewModel;
		}
	}
}
